package com.xinqi.modules.stats.score.service;

import com.xinqi.common.mybatis.data.service.BaseService;
import com.xinqi.modules.stats.score.domain.CourseTotalScoreContentEntity;
import com.xinqi.modules.stats.score.dto.req.CourseTotalScoreClassDTO;
import com.xinqi.modules.stats.score.dto.req.CourseTotalScoreContentCompleteDTO;
import com.xinqi.modules.stats.score.dto.req.CourseTotalScoreContentSetDTO;
import com.xinqi.modules.stats.score.dto.rsp.CourseTotalScoreContentResultDTO;

import java.util.List;

/**
 * 总成绩课程成绩项目配置表服务层
 *
 * @author: system
 * @date: 2023/03/26
 */
public interface CourseTotalScoreContentService extends BaseService<CourseTotalScoreContentEntity> {

    /*总成绩 编辑*/
    boolean setTotalScoreContent(CourseTotalScoreContentSetDTO dto);

    /*查询总成绩 成绩项列表*/
    List<CourseTotalScoreContentResultDTO> findTotalScoreContent(CourseTotalScoreClassDTO dto);

    /*查询总成绩 已设置的成绩项列表*/
    List<CourseTotalScoreContentResultDTO> findOpenTotalScoreContentContainSon(CourseTotalScoreClassDTO dto);

    /*总成绩完成设置*/
    boolean complete(CourseTotalScoreContentCompleteDTO dto);

}
